import math
n=int(input("请输入n的值:"))
for i in range(1,n+1):
    y=1.0
    while abs(y*y-i)>1e-8:
        y=(y+i/y)/2
    print("{}迭代法算数平方根为:{}".format(i,y))
    print("sqrt求的算数平方根为:",math.sqrt(i))
    print()
